class MyQueue(object):
    def __init__(self, maxSize):
        self.maxSize = maxSize
        self.data = []
        self.size = 0

    def isEmpty(self):
        return self.size == 0

    def isFull(self):
        return self.size >= self.maxSize

    def front(self):
        if not self.isEmpty():
            return self.data[0]
        else:
            print("Queue is empty")

    def push(self, value):
        if not self.isFull():
            self.data.append(value)
            self.size += 1
        else:
            print("Queue is full")

    def pop(self):
        if not self.isEmpty():
            self.data.pop(0)
            self.size -= 1
        else:
            print("Queue is empty")

    def print(self):
        print("now queue:")
        print("size", self.size)
        print("data", self.data)
        print("maxSize", self.maxSize)


if __name__ == "__main__":
    queue = MyQueue(10)
    for i in range(11):
        queue.push(i)
    queue.print()
    for i in range(5):
        print(queue.front())
        queue.pop()
    queue.print()
